﻿#region Copyright

//  ======================================================
//      Copyright (c) 2011 Toulr All rights reserved.
//     
//      The use and distribution terms for this software are contained in the file
//      named license.txt, which can be found in the root of this distribution.
//      By using this software in any fashion, you are agreeing to be bound by the
//      terms of this license.
//     
//     You must not remove this notice, or any other, from this software.
//  ======================================================

#endregion

#region Using Namespaces

using System;
using System.ComponentModel.DataAnnotations;

#endregion

namespace Toulr.Domains.Business
{
    /// <summary>
    ///   团购折扣配置信息
    /// </summary>
    public class PromotionsDiscount
    {
        /// <summary>
        ///   记录ID
        /// </summary>
        [Key]
        public Int32 Id { get; set; }

        /// <summary>
        ///   原价
        /// </summary>
        public float OriginalPrice { get; set; }

        /// <summary>
        ///   参与人数要求
        /// </summary>
        public Int32 UserCount { get; set; }

        /// <summary>
        ///   对应折扣
        /// </summary>
        public float Discount { get; set; }

        /// <summary>
        ///   是否已成功
        /// </summary>
        public bool Success { get; set; }

        /// <summary>
        /// 团购记录ID
        /// </summary>
        public int PromotionsId { get; set; }
    }
}